#pragma once
#include <osg/Vec3d>

#include "CmdHandler3.h"

class Ent;
class Ent2D;
class UCS;
class Mirror2DHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE Mirror2DHandler();
	~Mirror2DHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;

private:
	void mirror();

	osg::Vec3d m_start;
	osg::Vec3d m_end;
	std::vector<std::shared_ptr<Ent2D>> m_origins;
	std::vector<std::shared_ptr<Ent2D>> m_clones;
	UCS* m_ucs;
};
